﻿using CustomerService;
using J.CustomerRepository.Impl;
using J.CustomerRepository.Interface;

namespace J.CustomerGet.Extensions
{
    public static class Extension
    {
        /// <summary>
        /// 注入读的服务和仓储
        /// </summary>
        /// <param name="ServicesAssess"></param>
        public static void AssessGet(this IServiceCollection Services)
        {
            //仓储注入
            //Services.AddScoped<ITargetModelRepository, TargetModelRepository>();

            //客户列表
            Services.AddScoped<ICustomerListRepository, CustomerListRepository>();
            Services.AddScoped<ICustomerListService,CustomerListService>();
            //会员卡添加
            Services.AddScoped<IMemberCardRepository, MemberCardRepository>();
            Services.AddScoped<IMemberCardService,MemberCardService>();
        }
    }
}
